package org.pms.demo.webservice.vo;

import org.pms.demo.webservice.utils.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xusaike on 17/6/13.
 */
public class ResourceInfo {
    private String id;
    private String name;
    private String route;
    private String type;
    private String parent_ids; //父编号列表
    private String parent_id; //父编号
    private String pName;
    private String url; //资源路径
    private String permission; //权限字符串
    private int available=0;
    private int leaf_type=0;


    private List<ResourceInfo> list = new ArrayList();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRoute() {
        if(StringUtils.isNullOrEmpty(route))
            return "";
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

  public List<ResourceInfo> getList() {
        return list;
    }

    public void setList(List<ResourceInfo> list) {
        this.list = list;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParent_ids() {
        return parent_ids;
    }

    public void setParent_ids(String parent_ids) {
        this.parent_ids = parent_ids;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public int getLeaf_type() {
        return leaf_type;
    }

    public void setLeaf_type(int leaf_type) {
        this.leaf_type = leaf_type;
    }

    public int getAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }


    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }
}
